package top.hkyzf.study.leetcode.math;

import org.junit.Test;

/**
 * description: 
 * @author zhufeng
 * @date 2023/4/21 0021 9:17
 * @version V1.0
 */
public class 最小偶倍数_2413 {
    @Test
    public void testSmallestEvenMultiple () {
        int n = 5;
        int i = smallestEvenMultiple(n);
        System.out.println(i);
    }
    public int smallestEvenMultiple(int n) {
        return n << (n&1);
        // return (n&0B00000001) == 0 ? n : n<<1;
    }
}
